package com.woniuxy.driverschool.service.impl;

import com.woniuxy.driverschool.entity.Coach;
import com.woniuxy.driverschool.mapper.CoachMapper;
import com.woniuxy.driverschool.service.CoachService;
import lombok.Data;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
@Data
public class CoachServiceImpl implements CoachService {
    @Resource
    private CoachMapper coachMapper;


    @Override
    public List<Coach> showAllCoach() {
        return coachMapper.showAllCoach();
    }

    @Override
    public void addCoach(Coach coach) {
        coachMapper.addCoach(coach);
    }

    @Override
    public List<Coach> findCoachByOptions(Coach coach) {
        return coachMapper.findCoachByOptions(coach);
    }
}